﻿<include file="Common/header" />
<title>站点列表</title>
</head>

<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 站点管理 <span class="c-gray en">&gt;</span> 域名列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
  <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="r"> <a _href="{:U('domain_add',array('sid'=>$site_id))}" href="javascript:;" onClick="Hui_admin_tab(this);"  data-title="添加域名"   class="btn btn-primary radius"> <i class="Hui-iconfont">&#xe600;</i> 添加域名</a></span> <span class="l">站点名称:{$site_name}</span></div>
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr>
        <th scope="col" colspan="7">域名列表</th>
      </tr>
      <tr class="text-c">
        <th width="150">主次</th>
        <th width="300">域名</th>
        <th>备注</th>
        <th width="150">状态</th>
        <th width="150">操作</th>
      </tr>
    </thead>
    <tbody>
      <volist name="domains" id="vo">
        <tr class="text-c">
          <td class="td-status"><a _href="{:U('domain_zc',array('id'=>$vo['id'],'sid'=>$vo['site_id']))}"  class="getajax_ldh label <if condition="$vo['ranking'] eq 1"> label-success
            <else />
            label-defaunt
            </if>
            radius">主域名</a></td>
          <td> {$vo.domain}</td>
          <td>{$vo.remark}</td>
          <td class="td-status"><if condition="$vo.status eq 1"> <span class="label label-success radius" title="已启用" > 已启用 </span>
              <else />
              <span class="label label-defaunt radius"  title="已停用"  >已停用 </span> </if></td>
          <td style="font-size:14px"><a   
            <if condition="$status eq 1">title="停用"
              <else />
              title="启用"</if>
            href="javascript:;" _href="{:U('domain_status',array('id'=>$vo['id']))}"  class="ml-5 getajax_ldh" style="text-decoration:none">
            <if condition="$status eq 1"> <i class="Hui-iconfont">&#xe631;</i>
              <else />
              <i class="Hui-iconfont">&#xe601;</i></if>
            </a> <a title="编辑" _href='{:U('domain_save',array('sid'=>$vo['site_id'],'id'=>$vo['id']))}'  data-title="编辑域名"   href="javascript:;" onClick="Hui_admin_tab(this);" class="ml-5" style="text-decoration:none"> <i class="Hui-iconfont">&#xe692;</i></a> <a title="删除" href="javascript:;" _href="{:U('domain_del',array('id'=>$vo['id']))}" msg="确定要删除域名?"  class="ml-5 getajax_ldh del" style="text-decoration:none"> <i class="Hui-iconfont">&#xe6e2;</i></a></td>
        </tr>
      </volist>
    </tbody>
  </table>
  <div class="pages"> </div>
</div>
 </body>
</html>